<?php
/**
 * Created by PhpStorm.
 * User: mrk-sun
 * Date: 2018/5/10
 * Time: 18:11
 */

namespace Resource\Model;
use Think\Model;

class OrderLogModel extends Model
{
    protected $trueTableName = "wz_order_log";

    /**
     * 日志添加
     * @param $params
     * @return mixed
     */
    public function addOrderLog($params) {
        return $this->add($params);
    }

    /**
     * 查询列表（不分页）
     * @param $params
     * @return array
     */
    public function getAllOrderLog($params){
        $list = $this->where($params)->order('create_time DESC')->select();

        return $list?$list:[];
    }
}